// To parse this JSON data, do
//
//     final taskItemModel = taskItemModelFromJson(jsonString);

import 'dart:convert';

TaskItemModel taskItemModelFromJson(String str) => TaskItemModel.fromJson(json.decode(str));

String taskItemModelToJson(TaskItemModel data) => json.encode(data.toJson());

class TaskItemModel {
  TaskItemModel({
    this.id,
    this.appId,
    this.packageName,
    this.taskName,
    this.remark,
    this.icon,
    this.bigIcon,
    this.point,
    this.taskType,
    this.needCompleteCount,
    this.timeGap,
    this.taskPage,
    this.status,
    this.ctime,
    this.mtime,
    this.cuser,
    this.muser,
    this.taskOperation,
    this.subTaskName,
    this.maxCount,
    this.shortName,
    this.parentId,
    this.completeCount,
    this.updateTime,
    this.dateCap,
    this.userTaskStatus,
    this.weekendTask,
  });

  int? id;
  int? appId;
  String? packageName;
  String? taskName;
  String? remark;
  String? icon;
  String? bigIcon;
  num? point;
  int? taskType;
  int? needCompleteCount;
  int? timeGap;
  String? taskPage;
  int? status;
  int? ctime;
  int? mtime;
  int? cuser;
  int? muser;
  int? taskOperation;
  String? subTaskName;
  int? maxCount;
  String? shortName;
  int? parentId;
  int? completeCount;
  int? updateTime;
  int? dateCap;
  int? userTaskStatus;
  dynamic weekendTask;

  factory TaskItemModel.fromJson(Map<String, dynamic> json) => TaskItemModel(
        id: json["id"],
        appId: json["appId"],
        packageName: json["packageName"],
        taskName: json["taskName"],
        remark: json["remark"],
        icon: json["icon"],
        bigIcon: json["bigIcon"],
        point: json["point"],
        taskType: json["taskType"],
        needCompleteCount: json["needCompleteCount"],
        timeGap: json["timeGap"],
        taskPage: json["taskPage"],
        status: json["status"],
        ctime: json["ctime"],
        mtime: json["mtime"],
        cuser: json["cuser"],
        muser: json["muser"],
        taskOperation: json["task_operation"],
        subTaskName: json["sub_taskName"],
        maxCount: json["max_count"],
        shortName: json["short_name"],
        parentId: json["parent_id"],
        completeCount: json["completeCount"],
        updateTime: json["updateTime"],
        dateCap: json["dateCap"],
        userTaskStatus: json["userTaskStatus"],
        weekendTask: json["weekendTask"],
      );

  Map<String, dynamic> toJson() => {
        "id": id,
        "appId": appId,
        "packageName": packageName,
        "taskName": taskName,
        "remark": remark,
        "icon": icon,
        "bigIcon": bigIcon,
        "point": point,
        "taskType": taskType,
        "needCompleteCount": needCompleteCount,
        "timeGap": timeGap,
        "taskPage": taskPage,
        "status": status,
        "ctime": ctime,
        "mtime": mtime,
        "cuser": cuser,
        "muser": muser,
        "task_operation": taskOperation,
        "sub_taskName": subTaskName,
        "max_count": maxCount,
        "short_name": shortName,
        "parent_id": parentId,
        "completeCount": completeCount,
        "updateTime": updateTime,
        "dateCap": dateCap,
        "userTaskStatus": userTaskStatus,
        "weekendTask": weekendTask,
      };
}
